/***
 * Copyright (C) 2011  wexoo
 * p.weixlbaumer@gmail.com
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package net.wexoo.group_cost_calculator.enitities;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * CalculationMember.java
 * 
 * @author wexoo
 */
@DatabaseTable()
public class CalculationMember extends DatabaseEntity {

   public static final String TABLE_NAME = "calculation_member";
   public static final String CALCULATION_ID_COLUMN = "calculation_id";
   public static final String PERSON_ID_COLUMN = "person_id";

   @DatabaseField(columnName = CALCULATION_ID_COLUMN)
   private Integer calculationId;
   @DatabaseField(columnName = PERSON_ID_COLUMN)
   private Integer personId;

   public CalculationMember() {

   }

   public CalculationMember(Integer calculationId, Integer personId) {
      this.calculationId = calculationId;
      this.personId = personId;
   }

   public Integer getCalculationId() {
      return calculationId;
   }

   public Integer getPersonId() {
      return personId;
   }

   public void setCalculationId(Integer calculationId) {
      this.calculationId = calculationId;
   }

   public void setPersonId(Integer personId) {
      this.personId = personId;
   }
}